import { defineStore } from "pinia";
import {ref,computed} from "vue";

export const useTabBarStore = defineStore("tabBar", ()=>{
  const activeIndex = ref(0)

    function setActiveIndex(index) {
      activeIndex.value = index
    }


  return {
    activeIndex,
    setActiveIndex,
    getActiveIndex: computed(() => activeIndex.value)
  }
});
